package com.shu.driftbook.action;
import com.opensymphony.xwork2.ActionSupport;
import com.shu.driftbook.dao.User;
import com.shu.driftbook.service.*;

public class loginAction extends ActionSupport {
	private UserService service;
	private User user;
	public String execute() throws Exception {
		if(this.service.Login(user))
		{
			return "SUCCESS";
		}
		else{
			return "ERROR";
		}
			
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public UserService getService() {
		return service;
	}
	public void setService(UserService service) {
		this.service = service;
	}
}
